Icon

[Local] LLMs for Sentiment Prediction

LLMs for Sentiment Analysis

This workflows employs three distinct strategies using Large Language Models (LLMs) for sentiment analysis.

It demonstrates the application of open-source and closed-source API-based LLMs, as well as local models for advancing financial sentiment analysis.

URL: Financial Sentiment Analysis (dataset) https://www.kaggle.com/datasets/sbhatti/financial-sentiment-analysis

Workflow description: This workflows employs a local fine-tuned Large Language Models (LLMs) for sentiment analysis.




Import input data
Join input data with prompt

LLMs for Sentiment Prediction with KNIME

Excel Writer
Financial text datawith sentiment
CSV Reader
Column Appender
Missing valueto prompt
Missing Value
Keep 10
Sampling Rows
Join prompt+ texts
Expression
Create prompt
Table Creator
LLM Prompter
Local GPT4All LLM Selector

Nodes

Extensions

Links